﻿using System;
using System.Collections.Generic;
using System.Text;

namespace BCDto.Common.BankCardDetection
{

    /// <summary>
    /// 支付宝银行卡类型检测
    /// </summary>
    public class AlipayBankCardTypeDto
    {
        /// <summary>
        /// 卡类型
        /// </summary>
        public string cardType { get; set; }
        /// <summary>
        /// 银行缩写
        /// </summary>
        public string bank { get; set; }

        /// <summary>
        /// 卡号
        /// </summary>
        public string key { get; set; }

        /// <summary>
        /// 消息
        /// </summary>
        public object[] messages { get; set; }

        /// <summary>
        /// 是否验证
        /// </summary>
        public bool validated { get; set; }

        /// <summary>
        /// 状态
        /// </summary>
        public string stat { get; set; }

    }
    /// <summary>
    /// 支付宝银行卡检测错误类型
    /// </summary>
    public class AlipayBankCardError
    {
        /// <summary>
        /// 消息
        /// </summary>
        public object[] messages { get; set; }

        /// <summary>
        /// 是否验证
        /// </summary>
        public bool validated { get; set; }

        /// <summary>
        /// 状态
        /// </summary>
        public string stat { get; set; }

        /// <summary>
        /// 卡号
        /// </summary>
        public string key { get; set; }

    }

    /// <summary>
    /// 银行卡类型
    /// </summary>
    public class BankCardTypeDto
    {
        /// <summary>
        /// 卡类型
        /// </summary>
        public string cardType { get; set; }
        /// <summary>
        /// 银行缩写
        /// </summary>
        public string bankCode { get; set; }


        /// <summary>
        /// 银行卡号
        /// </summary>
        public string bankCardNo { get; set; }


    }

    /// <summary>
    /// 校验银行卡类型
    /// </summary>
    public class BankCardTypeInfoDto:BankCardTypeDto
    {

        /// <summary>
        /// 银行名称
        /// </summary>
        public string bankName { get; set; }


    }



    /// <summary>
    /// 银行卡类型识别模式
    /// </summary>
    public class BankCardPatternDto
    {
        /// <summary>
        /// 模式ID
        /// </summary>
        public long BankCardPatternId { get; set; }

        /// <summary>
        /// 正则表达式
        /// </summary>
        public string Reg { get; set; }

        /// <summary>
        /// 银行卡类别
        /// </summary>
        public string CardType { get; set; }

        /// <summary>
        /// 银行缩写代码
        /// </summary>
        public string BankCode { get; set; }

        /// <summary>
        /// 银行名称
        /// </summary>
        public string BankName { get; set; }

    }

}
